package com.medical.server.drug.service.impl;

import com.laozj.common.utils.PageUtils;
import com.laozj.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.medical.server.drug.dao.DrugCategoryDao;
import com.medical.server.drug.entity.DrugCategoryEntity;
import com.medical.server.drug.service.DrugCategoryService;


@Service("drugCategoryService")
public class DrugCategoryServiceImpl extends ServiceImpl<DrugCategoryDao, DrugCategoryEntity> implements DrugCategoryService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<DrugCategoryEntity> page = this.page(
                new Query<DrugCategoryEntity>().getPage(params),
                new QueryWrapper<DrugCategoryEntity>()
        );

        return new PageUtils(page);
    }

}